//
//  PrivateTaxCalculator.h
//  PrivateTaxCalculator
//
//  Created by albert ma on 1/5/12.
//  Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "PrivateTax.h"


@class TaxRateDao;
@interface PrivateTaxCalculator : NSObject

@property(retain,nonatomic) TaxRateDao* taxDao;

-(double)getTax:(double)income insurance:(double)insurance withType:(TaxType)type;

-(double)getTaxIncome:(double)income insurance:(double)insurance withType:(TaxType)type;

-(double)getCurrentTax:(double )income withInsuranceBase:(double)insuranceBase withInsuracePercentage:(double)Percentage;

-(double)getCurrentTaxIncome:(double )rawIncome withInsuranceBase:(double)insuranceBase withInsuracePercentage:(double)Percentage;

-(double)getInsuranceBase:(double) totalInsurance withInsuranceRate:(double)totalRate;

@end
